<?php

namespace common\models\hospital;

use Yii;

/**
 * This is the model class for table "{{%clinic_name}}".
 *
 * @property int $id
 * @property string|null $clinic_name
 * @property int|null $project_id
 * @property string|null $created_at
 */
class ClinicName extends \common\models\BaseModel
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%clinic_name}}';
    }

    /**
     * @return \yii\db\Connection the database connection used by this AR class.
     */
    public static function getDb()
    {
        return Yii::$app->get('db3');
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['project_id'], 'integer'],
            [['clinic_name', 'created_at'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'clinic_name' => 'Clinic Name',
            'project_id' => 'Project ID',
            'created_at' => 'Created At',
        ];
    }
}
